import Axios from '../axios/index'



// 创建待办
export const CreateTodo = function (params) {
    return Axios({
      url: '/todo/create',
      method: 'post',
      data: params
    })
}

// todo/list 查询数据
export const queryTodolist = function (params) {
  return Axios({
    url: '/todo/list',
    method: 'get',
    params: params
  })
}

// /todo/delete
export const deleteSingleData = function (params) {
  return Axios({
    url: '/todo/delete',
    method: 'get',
    params: params
  })
}

// 更新一条数据
export const updateSingleData = function (params) {
  return Axios({
    url: '/todo/update',
    method: 'post',
    data: params
  })
}
// 日历统计月待办天数
/*
 "start":"2021-02-01",
    "end":"2021-02-28"
*/

export const getTagnumberofdays = function (params) {
  return Axios({
    url: '/todo/calculateData',
    method: 'post',
    data: params
  })
}

